package com.atguigu.guli.service.edu.mapper;

import com.atguigu.guli.service.edu.entity.Course;
import com.atguigu.guli.service.edu.entity.vo.CourseDetailsVo;
import com.atguigu.guli.service.edu.entity.vo.CourseInfoVo;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 课程 Mapper 接口
 * </p>
 *
 * @author atguigu
 * @since 2021-07-27
 */
public interface CourseMapper extends BaseMapper<Course> {

    List<CourseInfoVo> selectCourseInfoVoPage(Page<CourseInfoVo> page, @Param("ew") QueryWrapper<Course> queryWrapper);


    CourseInfoVo selectCourseInfoVoByCondition(@Param("ew") QueryWrapper<Course> queryWrapper);

    CourseDetailsVo selectCourseDatilsVoByCourseId(String courseId);
}
